import Login from "../pages/Login";
import Dashboard from "../pages/dashboard/Dashboard";
import SysUserList from "../pages/admin/user/SysUserList";
import SysUserEdit from "../pages/admin/user/SysUserEdit";
import NotFound from "../pages/NotFound";

import {
    DashboardOutlined,
    UserOutlined
} from '@ant-design/icons';

export const noAuthRoutes = [
    {
        path: '/login',
        component: Login
    },
    {
        path: '/404',
        component: NotFound
    }
]

export const authRoutes = [
    {
        path: '/admin/dashboard',
        component: Dashboard,
        exact: true,
        isShow: true,
        title: '看板',
        icon: <DashboardOutlined />
    },
    {
        path: '/admin/users',
        component: SysUserList,
        isShow: true,
        title: '用户列表',
        icon: <UserOutlined />
    },
    {
        path: '/admin/user/edit:id?',
        component: SysUserEdit,
        isShow: false,
        title: '用户编辑'
    }
]
